given a table of values of fx and it's inverse